
package com.yungu.swift.system.sys.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.base.service.impl.BaseServiceImpl;
import com.yungu.swift.system.sys.dao.SysOpenAreaConfigMapper;
import com.yungu.swift.system.sys.model.dto.SysOpenAreaConfigDto;
import com.yungu.swift.system.sys.service.SysOpenAreaConfigService;
import org.springframework.stereotype.Component;

/**
 * @author cuixiuyin
 * @version 1.0
 * @Description: 开通区县操作服务类
 * @date 2018/12/14 21:01
 */
@Service
@Component
public class SysOpenAreaConfigServiceImpl extends BaseServiceImpl<SysOpenAreaConfigDto> implements SysOpenAreaConfigService {

    private SysOpenAreaConfigMapper sysOpenAreaConfigMapper;

    @Override
    protected IMapper<SysOpenAreaConfigDto> getMapper() {
        return sysOpenAreaConfigMapper;
    }

    @Override
    public ResponseData<SysOpenAreaConfigDto> detailByAreaUuid(String areaUuid) {
        return ResponseData.buildSuccessResponse(sysOpenAreaConfigMapper.detailByAreaUuid(areaUuid));
    }
}
